package com.pucong.gitee.database.backup.common.entity.service;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pucong.gitee.database.backup.common.selfenum.FileServiceTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* @author pucong
* @company gitee.com/pucong
* @create 2020-12-02
*/
@Data
@TableName("auto_service_file_list")
@ApiModel("附件操作")
public class ServiceFileList implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uuid",type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String uuid;

    @TableField("file_catalogue_uuid")
    @ApiModelProperty("目录表uuid")
    private String fileCatalogueUuid;

    @TableField("path")
    @ApiModelProperty("相对路径")
    private String path;

    @TableField("file_name")
    @ApiModelProperty("文件名")
    private String fileName;

    @TableField("file_name_old")
    @ApiModelProperty("文件原名")
    private String fileNameOld;

    @TableField("file_size")
    @ApiModelProperty("文件大小 bytes")
    private String fileSize;

    @TableField("file_type")
    @ApiModelProperty("文件后缀")
    private String fileType;

    @TableField("file_service_type")
    @ApiModelProperty("附件服务类型枚举类")
    private FileServiceTypeEnum fileServiceType;

    @TableField("create_by")
    @ApiModelProperty("创建人id")
    private String createBy;

    @TableField("create_date")
    @ApiModelProperty("创建时间")
    private Date createDate;

}
